package com.asohofrucol.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.asohofrucol.model.AgrarianResource;

public interface AgrarianResourceDao extends
	BasicSaveDao<AgrarianResource, Long> {

    @Query("SELECT p FROM AgrarianResource p WHERE p.ruat.id = :ruatId and p.status='1'")
    public List<AgrarianResource> listByRuatId(@Param("ruatId") Long ruatId);
}
